<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>function对象</title>
		<script>
			var sum=0;
			function add(){
				
				for (var i = 0; i < arguments.length; i++) {
					sum +=arguments[i];
				}
				return sum;
			}
			
			var s=add(1,456,4656,98498,4564646);
			alert(s);
			
			
			
		</script>
	</head>
	<body>
	</body>
</html>